<%--
	User: dizem@126.com
	Time: 11-6-23 上午10:52
--%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<meta http-equiv=content-type content="text/html; charset=UTF-8"/>
	<title>登陆</title>
	<link rel="stylesheet" href="/css/index.css" type="text/css" media="screen" charset="utf-8"/>
</head>
<body>
<jsp:include page="../common/header.jsp"/>
<div id="bd" class="cf">
	<div id="login">
		<div id="content" class="login-box">
			<div class="box">
				<div class="box-top"></div>
				<div class="box-content">
					<div class="head">
						<h2>登录</h2>
						<span>&nbsp;或者 <a href="/page/register.jsp">注册</a> </span>
					</div>
					<div class="sect">
						<s:form action="login" namespace="/" theme="simple" validate="true">
							<div class="field email">
								<label for="username_or_email">Email/用户名</label>
								<s:textfield id="username_or_email" size="true" name="username" cssClass="f-input"/>
								<s:fielderror cssClass="field-error">
									<s:param>username</s:param>
								</s:fielderror>
								<span class="hint">Email地址或者用户名都可正常登录</span>
							</div>
							<div class="field password">
								<label for="password">密码</label>
								<s:password id="password" name="password" cssClass="f-input" maxlength="20"
											required="true"/>
								<s:fielderror cssClass="field-error">
									<s:param>password</s:param>
								</s:fielderror>
								<span class="lostpassword">
									<a href="#">忘记密码？</a>
								</span>
							</div>
							<div class="field validationCode">
								<label>验证码</label>
								<s:textfield id="txtValidationCode" name="validation" cssClass="tf-input"
											 maxlength="4" required="true"/>&nbsp;&nbsp;
								<img id="validation_image" src="/validationCode.action" style="height:30px"
									 onclick="this.src='/validationCode.action?a=' + Math.random()"/>
								<s:fielderror cssClass="field-error">
									<s:param>validation</s:param>
								</s:fielderror>
							</div>
							<div class="field autologin">
								<s:checkbox value="1" name="autoLogin" id="autologin" cssClass="f-check"/>
								<label for="autologin">下次自动登录</label>
							</div>
							<div class="act">
								<s:submit value="登录" name="commit" id="submit" cssClass="formbutton"/>
							</div>
						</s:form>
					</div>
				</div>
				<div class="box-bottom"></div>
			</div>
		</div>
		<div id="sidebar">
			<div class="sbox">
				<div class="sbox-top"></div>
				<div class="sbox-content">
					<div class="side-tip">
						<h2>还没有18团账户？</h2>
						<p>立即 <a href="/page/register.jsp">注册</a>，仅需30秒！</p>
					</div>
				</div>
				<div class="sbox-bottom"></div>
			</div>
		</div>
	</div>
</div>
<jsp:include page="../common/footer.jsp"/>
</body>
</html>
		